<template>
  <div class="recommend">
    <div class="recommend-item" v-for="(item, index) in recommends" :key=index>
      <a :href="item.link">
        <img v-lazy="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: 'RecommendViews',
  props: {
    recommends: {
      type: Array,
      default: []
    }
  }
}
</script>

<style scoped>
  .recommend {
    display: flex;
    /* display:list-item; */
    width: 100%;
    text-align: center;
    font-size: 12px;
    background-color: #ffffff; 

    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .recommend-item {
    flex: 1;
    /* float: left; */
    /* width: 20%; */
  }

  .recommend-item img {
    width: 60px;
    height: 60px;
    margin: 10px;
  }
</style>
